<template>
  <div class="router-content">
    <inside v-for="(div, index) in article" :key="index" :title="div.title" :contents="div.contents" :urls="div.urls"></inside>
  </div>
</template>

<script>
import Bus from '@/assets/bus'
import inside from '@/components/inside'
export default {
  name: 'index',
  components: {
    inside
  },
  data () {
    return {
      menus: [],
      article: []
    }
  },
  created () {
    this.menus = this.$route.matched
    Bus.$emit('menus', this.menus)
    // console.log(this.$route.matched)
    this.write()
  },
  methods: {
    write () {
      this.article = [
        {
          title: '批量补贴的导入',
          contents: [
            '批量补贴导入画面没有补贴模板可以点击“下载补贴模板”如果有补贴模板可以在填写好要导入的表格后，点击“选取文件”（在补贴导入的表格里不仅可以补贴金额还可以补贴次数）',
            '选择想要导入的补贴文件，点击“打开”就可以补贴导入了。'
          ],
          urls: [
            '/static/imgs/card/subsidy_1.png',
            '/static/imgs/card/subsidy_2.png'
          ]
        }, {
          title: '导入成功',
          contents: [
            '导入成功时会出现以下画面'
          ],
          urls: [
            '/static/imgs/card/subsidy_3.png'
          ]
        }, {
          title: '导入失败',
          contents: [
            '导入失败会出现以下画面，并且点击无效行数可以看见无效的原因'
          ],
          urls: [
            '/static/imgs/card/subsidy_4.png'
          ]
        }
      ]
    }
  }
}
</script>
<style>
</style>
